package com.yn.club.subject.application.convert;


import java.util.List;
import com.yn.club.subject.domain.entity.SubjectInfoDO;
import com.yn.club.subject.application.dto.SubjectInfoDTO;
import com.yn.club.subject.application.request.SubjectInfoSaveRequest;
import com.yn.club.subject.application.request.SubjectInfoQueryRequest;
import org.mapstruct.Mapper;
import com.yn.club.common.util.MapStructUtil;
/**
 * 题目信息表(SubjectInfo)DTO和DO转换
 *
 * @author YN
 * @since 2025-01-21 17:40:47
 */
@Mapper(componentModel = "spring", uses = {MapStructUtil.class})
public interface SubjectInfoApplicationConverter {

  SubjectInfoDTO convertDoToDto(SubjectInfoDO ojb);
  
  List<SubjectInfoDTO> convertDoToDto(List<SubjectInfoDO> ojbs);
  
  SubjectInfoDO convertDtoToDo(SubjectInfoDTO ojb);
  
  List<SubjectInfoDO> convertDtoToDo(List<SubjectInfoDTO> ojbs);
  
  SubjectInfoDO convertSaveRequestToDo(SubjectInfoSaveRequest ojb);
  
  SubjectInfoDO convertQueryRequestToDo(SubjectInfoQueryRequest ojb);
  
  
}

